﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.ApprovalRecord;
using T.Settlement.Domain;

namespace T.Settlement.Repository
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class SEFDbcontext:DbContext
    {
        public SEFDbcontext(DbContextOptions<SEFDbcontext> options) : base(options) { }
        public DbSet<Expenses> Expenses { get; set; }
        public DbSet<Invoice> Invoices { get; set; }
        public DbSet<Payment> Payment { get; set; }
        /// <summary>
        /// 引用审批表
        /// </summary>
        [NotMapped]
        public DbSet<ApprovalRecordd> ApprovalRecordds { get; set; }
    }
}
